# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-sarif-om
_pkgname=sarif_om
pkgver=1.0.4
pkgrel=6
pkgdesc='Classes implementing the SARIF 2.1.0 object model.'
arch=('any')
url='https://pypi.org/project/sarif-om/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2261c2e4baba7f8621315a8e3e6933aa73bebce92eede570a22816ceca09bbfdeacae804e74de127443347c999fe9459cc5ae69c9e1570c79fafcd1c1b3c7f7c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

